<?php

namespace app\admin\controller;
use think\facade\Db;
use think\facade\View;
class Order
{
    public function orderDetail()
    {
        return view();
    }

    public function orderList()
    {
        // 调用$where
        list($where)=\app\admin\logic\Goods::getOrderListWhere();
        View::assign(input(''));
        $all=Db::name('order_status')->select();
        View::assign('all',$all);
        // 展示所有orderlist
        $list=\app\admin\model\Order::getOrderList($where);
        View::assign("list",$list);
        return view();
    }
}